//
//  ShoppingCartCell.h
//  Yanwei
//
//  Created by 刘文 on 17/4/12.
//  Copyright © 2017年 DCloud. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BasicCell.h"
#import "GoodsModel.h"
#import "OrderDataModel.h"

typedef NS_ENUM(NSInteger, ClickedViewTypeInShoppingCart) {
    ClickedViewTypeInShoppingCartNoraml = 0,
    ClickedViewTypeInShoppingCartChangeStandard = 1,//重新选择规格
    ClickedViewTypeInShoppingCartOrderCell = 2,//确认订单的cell,初始化的时候用
    ClickedViewTypeInShoppingCartCheckGoods = 3,//点击勾选按钮
};

typedef void(^ClickedTypeInView)(ClickedViewTypeInShoppingCart, id data);
typedef void(^CliekedNumChangeBlock)(void);

@class StoreDataModel, IdentityInfoListModel, AffirmOrdeGoodsNumberView;

@interface ShoppingCartCell : BasicCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier clickedViewTypeInShoppingCart:(ClickedViewTypeInShoppingCart)type;

/** 编辑状态 */
@property (assign, nonatomic) BOOL editStatus;
@property (copy, nonatomic) ClickedTypeInView clickedTypeInViewBlock;
@property (copy, nonatomic) CliekedNumChangeBlock cliekedNumChangeBlock;
@property (nonatomic, assign) BOOL showLine;
@property (nonatomic, assign) BOOL showShoppingCartStoreTagView;
@property (nonatomic, assign) BOOL fromShoppingCart;
@property (nonatomic, assign) BOOL needRealName;
@property (nonatomic, assign) BOOL needEditGoodsNumber;
@property (nonatomic, assign) BOOL showSepLine;


@property (nonatomic, assign) NSInteger shoppingCartListType;

@property (nonatomic, assign) OrderListPurchaseType orderListPurchaseType;
/**  购买数量选择 */
@property (nonatomic, strong) AffirmOrdeGoodsNumberView *goodsNumerView;

/**
 传递数据

 @param model 商品模型
 @param isOrderDetail 是否来自订单详情
 */
- (void)setModel:(GoodsModel *)model isOrderDetail:(BOOL)isOrderDetail;
@end
